#!/usr/bin/bash

SCHEDULER="hsJobStart.py"

old_pid=$(pgrep -f $SCHEDULER)

if [ "$old_pid" ]; then
  pgrep -f $SCHEDULER | xargs kill -9
  echo "进程已停止"
else
  echo "进程未运行"
fi
